cmbTipDocumento<div class="main-content">
    <div class="container">
        <div class="row">
            <div class="col-sm-12">
                <ol class="breadcrumb">
                    <li>
                        <i class="clip-file"></i>
                        <a href="#">
                            Ventas
                        </a>
                    </li>
                    <li class="active">
                        Facturación
                    </li>					
                </ol>
                <div class="page-header">
                    <h1>Comprobantes  <small>Listado</small></h1>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <!-- start: DYNAMIC TABLE PANEL -->
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <i class="icon-external-link-sign"></i>
                        Comprobantes
                        <div class="panel-tools">
                            <a class="btn btn-xs btn-link panel-collapse collapses" href="#">
                            </a>
                            <a class="btn btn-xs btn-link panel-config" href="#panel-config" data-toggle="modal">
                                <i class="icon-wrench"></i>
                            </a>
                            <a class="btn btn-xs btn-link panel-refresh" href="#">
                                <i class="icon-refresh"></i>
                            </a>
                            <a class="btn btn-xs btn-link panel-expand" href="#">
                                <i class="icon-resize-full"></i>
                            </a>
                            <!--<a class="btn btn-xs btn-link panel-close" href="#">
                                <i class="icon-remove"></i>
                            </a> -->
                        </div>
                    </div>
                    <div class="panel-body">
                        <form action="<?php echo base_url('ventas/proceso/ListarComprobante'); ?>" class="form-horizontal" method="POST">
                            
                            <div class="row">
                                <div class="col-md-5">
                                    <div class="form-group">
                                        <label for="tipo" class="col-sm-2 control-label">Tipo</label>
                                        <div class="col-sm-9">
                                            <select id="tipoC" name="tipoC" class="form-control search-select">
                                                <option></option>
                                                   <option value="B">BOLETA DE VENTA</option>
                                                  <option value="N">NOTA DE VENTA</option>
                                                   <option value="F">FACTURA DE VENTA</option>
                                            </select>
                                           
                                        </div>
                                    </div>
                                </div>
                              <!--  <div class="col-md-5">
                                    <div class="form-group">
                                        <label for="familia" class="col-sm-2 control-label">Familia</label>
                                        <div class="col-sm-9">
                                           <select id="familia" name="familia" class="form-control search-select">
                                                <option></option>
                                            </select> 
                                          
                                        </div>
                                    </div>
                                </div> !-->
                                <div class="col-md-2">
                                    <div class="form-group">
                                        <div class="col-sm-4">
                                            <button type="submit" id="btnBusc" style="margin-top: 3px" class="btn btn-primary "><i class="icon-search"></i></button>
                                        </div>  
                                    </div>  
                                </div>
                            </div>
                        </form>
                        <hr>

                        <table class="table table-striped table-bordered table-condensed table-hover table-full-width" id="sample_1">
                            <thead>
                                <tr>
                                   
                                    <th style="width: 9%">T.Pago</th>
                                    <th style="width: 5%">Serie</th>
                                    <th style="width: 8%">Nro</th>
                                    <th style="width: 30%">Cliente</th>
                                    <th style="width: 9%">DNI/RUC</th>
                                    <th style="width: 9%">Monto</th>
                                    <th style="width: 13%" >F. Venta</th>
                                    <th style="width: 8%">F. Venc</th>
                                    <th style="width: 9%">Estado</th>
                                    
                                </tr>
                            </thead>
                            <tbody>
                              <?php
                                if (!empty($comprobante)) :
                                    foreach ($comprobante as $fila):
                                        ?>
                                        <tr class="desmarcado" style="cursor: pointer;" >               
                                            <td style="width: 9%"><?PHP if($fila->tipo_ven=="C"){ echo "CREDITO";}else if($fila->tipo_ven=="TC"){ECHO "T.CREDITO";}else if($fila->tipo_ven=="E"){echo "EFECTIVO";}else if($fila->tipo_ven=="G"){echo "GIRO";}?></td>  
                                            <td style="width: 5%"><?php
                                IF ($fila->tipo_doc == "N") {
                                            echo "-";
                                } ELSE IF ($fila->tipo_doc == "B") {
                                    $serie = str_pad($fila->serie_bol, 4, 0, STR_PAD_LEFT);
                                    echo $serie;
                                } ELSE IF ($fila->tipo_doc == "F") {
                                    $serie = str_pad($fila->serie_fac, 4, 0, STR_PAD_LEFT);
                                   echo $serie;
                                }
                                ?> </td>
                                            <td style="width: 8%"> <?php
                                IF ($fila->tipo_doc == "N") {
                                   $num = str_pad($fila->cod_nota, 7, 0, STR_PAD_LEFT);
                                    echo $num;
                                } ELSE IF ($fila->tipo_doc == "B") {
                                    $numB = str_pad($fila->num_bol, 7, 0, STR_PAD_LEFT);
                                    echo $numB;
                                } ELSE IF ($fila->tipo_doc == "F") {
                                    $numF = str_pad($fila->num_fac, 7, 0, STR_PAD_LEFT);
                                   echo $numF;
                                }
                                ?> </td>
                                            <td style="width: 30%;"><?php
                                IF ($fila->tipo_doc == "N" || $fila->tipo_doc == "B" ) {
                                   $num = str_pad($fila->nom_Cli, 7, 0, STR_PAD_LEFT);
                                    echo $num;
                                } 
                                  ELSE IF ($fila->tipo_doc == "F") {
                                    $num = str_pad($fila->raz_Cli, 7, 0, STR_PAD_LEFT);
                                   echo $num;
                                }
                                ?></td>  
                                            <td style="width: 9%;"><?php
                                IF ($fila->tipo_doc == "N" || $fila->tipo_doc == "B" ) {
                                   $num = str_pad($fila->dni_Cli, 7, 0, STR_PAD_LEFT);
                                    echo $num;
                                } 
                                  ELSE IF ($fila->tipo_doc == "F") {
                                    $num = str_pad($fila->ruc_Cli, 7, 0, STR_PAD_LEFT);
                                   echo $num;
                                }
                                ?></td>
                                            <td style="width: 9%;"><?=$fila->total_ven ?></td>
                                            <td style="width: 13%;" ><?=$fila->fec_ven ?></td>
                                            <td style="width: 9%;"><?=$fila->fec_pen ?></td>
                                            <td style="width: 9%;"><?=$fila->est_ven ?></td>
                                           
                                        </tr>
                                       	 <?php
                                    endforeach;
                                endif;
                                ?>       				
                            </tbody>
                        </table>

                    </div>
                </div>
                <!-- end: DYNAMIC TABLE PANEL -->
            </div>
        </div>
    </div>
</div>